/**
 * Generate time : 2011-06-14 13:39:53
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cl.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCLSecurityItems
 * 
 */
public class ZMCLSecurityItems extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdItemCode = " "; /* 检查项目编号 */
	private String fdItemContent = " "; /* 检查项目内容 */
	private Double fdFrequency = new Double(0); /* 检查频率 */
	private String fdFrequencyUnits = " "; /* 检查频率单位 */
	private String fdStandard = " "; /* 检查标准 */
	private String fdStep = " "; /* 检查步骤 */
	private String fdItemType = " "; /* 检查项目类型 */
	private String fdStatus = " "; /* 状态 */
	private String fdRemark = " "; /* 备注 */
	private String fdSurveypointName = " "; /* 巡检点名称 */
	private String fdItemInfo = " "; /* 检查项目信息 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdItemCode");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("检查项目编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdItemContent");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("检查项目内容");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFrequency");
		eiColumn.setType("N");
		eiColumn.setScaleLength(1);
		eiColumn.setFieldLength(4);
		eiColumn.setDescName("检查频率");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFrequencyUnits");
		eiColumn.setFieldLength(5);
		eiColumn.setDescName("检查频率单位");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStandard");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("检查标准");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStep");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("检查步骤");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdItemType");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("检查项目类型");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStatus");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemark");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSurveypointName");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("巡检点名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdItemInfo");
		eiColumn.setFieldLength(220);
		eiColumn.setDescName("检查项目信息");
		eiMetadata.addMeta(eiColumn);
	}

	/**
	 * the constructor
	 */
	public ZMCLSecurityItems() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdItemCode - 检查项目编号
	 * 
	 * @return the fdItemCode
	 */
	public String getFdItemCode() {
		return this.fdItemCode;
	}

	/**
	 * set the fdItemCode - 检查项目编号
	 */
	public void setFdItemCode(String fdItemCode) {
		this.fdItemCode = fdItemCode;
	}

	/**
	 * get the fdItemContent - 检查项目内容
	 * 
	 * @return the fdItemContent
	 */
	public String getFdItemContent() {
		return this.fdItemContent;
	}

	/**
	 * set the fdItemContent - 检查项目内容
	 */
	public void setFdItemContent(String fdItemContent) {
		this.fdItemContent = fdItemContent;
	}

	/**
	 * get the fdFrequency - 检查频率
	 * 
	 * @return the fdFrequency
	 */
	public Double getFdFrequency() {
		return this.fdFrequency;
	}

	/**
	 * set the fdFrequency - 检查频率
	 */
	public void setFdFrequency(Double fdFrequency) {
		this.fdFrequency = fdFrequency;
	}

	/**
	 * get the fdFrequencyUnits - 检查频率单位
	 * 
	 * @return the fdFrequencyUnits
	 */
	public String getFdFrequencyUnits() {
		return this.fdFrequencyUnits;
	}

	/**
	 * set the fdFrequencyUnits - 检查频率单位
	 */
	public void setFdFrequencyUnits(String fdFrequencyUnits) {
		this.fdFrequencyUnits = fdFrequencyUnits;
	}

	/**
	 * get the fdStandard - 检查标准
	 * 
	 * @return the fdStandard
	 */
	public String getFdStandard() {
		return this.fdStandard;
	}

	/**
	 * set the fdStandard - 检查标准
	 */
	public void setFdStandard(String fdStandard) {
		this.fdStandard = fdStandard;
	}

	/**
	 * get the fdStep - 检查步骤
	 * 
	 * @return the fdStep
	 */
	public String getFdStep() {
		return this.fdStep;
	}

	/**
	 * set the fdStep - 检查步骤
	 */
	public void setFdStep(String fdStep) {
		this.fdStep = fdStep;
	}

	/**
	 * get the fdItemType - 检查项目类型
	 * 
	 * @return the fdItemType
	 */
	public String getFdItemType() {
		return this.fdItemType;
	}

	/**
	 * set the fdItemType - 检查项目类型
	 */
	public void setFdItemType(String fdItemType) {
		this.fdItemType = fdItemType;
	}

	/**
	 * get the fdStatus - 状态
	 * 
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}

	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}

	/**
	 * get the fdRemark - 备注
	 * 
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}

	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}

	/**
	 * @return the fdSurveypointName
	 */
	public String getFdSurveypointName() {
		return fdSurveypointName;
	}

	/**
	 * @param fdSurveypointName
	 *            the fdSurveypointName to set
	 */
	public void setFdSurveypointName(String fdSurveypointName) {
		this.fdSurveypointName = fdSurveypointName;
	}

	/**
	 * @return the fdItemInfo
	 */
	public String getFdItemInfo() {
		return fdItemInfo;
	}

	/**
	 * @param fdItemInfo
	 *            the fdItemInfo to set
	 */
	public void setFdItemInfo(String fdItemInfo) {
		this.fdItemInfo = fdItemInfo;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdItemCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdItemCode")), fdItemCode));
		setFdItemContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdItemContent")), fdItemContent));
		setFdFrequency(NumberUtils.toDouble(StringUtils.toString(map.get("fdFrequency")), fdFrequency));
		setFdFrequencyUnits(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFrequencyUnits")), fdFrequencyUnits));
		setFdStandard(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStandard")), fdStandard));
		setFdStep(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStep")), fdStep));
		setFdItemType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdItemType")), fdItemType));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
		setFdSurveypointName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSurveypointName")), fdSurveypointName));
		setFdItemInfo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdItemInfo")), fdItemInfo));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdItemCode", StringUtils.toString(fdItemCode, eiMetadata.getMeta("fdItemCode")));
		map.put("fdItemContent", StringUtils.toString(fdItemContent, eiMetadata.getMeta("fdItemContent")));
		map.put("fdFrequency", StringUtils.toString(fdFrequency, eiMetadata.getMeta("fdFrequency")));
		map.put("fdFrequencyUnits", StringUtils.toString(fdFrequencyUnits, eiMetadata.getMeta("fdFrequencyUnits")));
		map.put("fdStandard", StringUtils.toString(fdStandard, eiMetadata.getMeta("fdStandard")));
		map.put("fdStep", StringUtils.toString(fdStep, eiMetadata.getMeta("fdStep")));
		map.put("fdItemType", StringUtils.toString(fdItemType, eiMetadata.getMeta("fdItemType")));
		map.put("fdStatus", StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));
		map.put("fdRemark", StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));
		map.put("fdSurveypointName", StringUtils.toString(fdSurveypointName, eiMetadata.getMeta("fdSurveypointName")));
		map.put("fdItemInfo", StringUtils.toString(fdItemInfo, eiMetadata.getMeta("fdItemInfo")));

		return map;

	}
}